package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.NewsDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 新闻
 * 
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-07-15 20:27:55
 */
public interface NewsMapper extends BaseMapper<NewsDO> {

    List<NewsDO> selectByList(@Param("title") String title, @Param("categoryId") String categoryId,@Param("type") Integer type,@Param("offset") Integer offset, @Param("limit") Integer limit);

    public Long countOrder(@Param("title") String title, @Param("categoryId") String categoryId,@Param("type") Integer type);
}
